package cn.signUpSystem.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import cn.signUpSystem.pojo.Applicant;
import cn.signUpSystem.service.ApplicantService;

@Service
@SuppressWarnings("unchecked")
public class ApplicantServiceImpl extends BaseServiceImpl<Applicant> implements
		ApplicantService {

	public List<Applicant> queryByPositionId(Integer id) {
		if (hibernateTemplate
				.find("FROM Applicant a WHERE a.position.id=" + id).size() == 0) {
			return null;
		}
		return hibernateTemplate.find("FROM Applicant a WHERE a.position.id="
				+ id);
	}

}
